class A {
	public A() {
		System.out.println("Class A constructor without parameter");
	}

	public A(int i) {
		System.out.println("Class A constructor with parameter i=" + i);
	}

	public void hello() {
		System.out.println("A hello");
	}

	public static void print() {
		System.out.println("static A print");
	}
}

class B extends A {
	public B() {
		super(100);
		System.out.println("Class B constructor without parameter");
	}

	public B(int i) {
		System.out.println("Class B constructor with parameter i=" + i);
	}

	public void hello() {
		super.hello();
		System.out.println("B hello");
	}

	public static void print() {
		System.out.println("static B print");
	}
}

class Main {
	public static void main(String[] args) {
		A a=new B();
		a.hello();
		a.print();

	}
}
